package webapi

import (
	"net/http"
)

//ServiceControlService 服务控制类
type ServiceControlService struct {
	base ServiceBase
}

//Regist 注册
func (_this *ServiceControlService) Regist(mux *http.ServeMux) {
	_this.base.Regist(mux)
	_this.base.path += "scs"

	//"process_statue","daemon_statue","start_all","stop_all","start_daemon","stop_daemon","star_process","stop_process"
	_this.base.HandleRegist("process_statue", _this.ProcessStatue)
	_this.base.HandleRegist("daemon_statue", _this.DaemonStatue)
	_this.base.HandleRegist("start_all", _this.StartAll)
	_this.base.HandleRegist("stop_all", _this.StopAll)
	_this.base.HandleRegist("start_daemon", _this.StartDaemon)
	_this.base.HandleRegist("stop_daemon", _this.StopDaemon)
	_this.base.HandleRegist("start_process", _this.StartProcess)
	_this.base.HandleRegist("stop_process", _this.StopProcess)
	//_this.base.HandleRegist("addGateways", _this.addGateway)
	//_this.base.HandleRegist("saveConfig", _this.saveConfig)
}

//ProcessStatue fun
func (_this *ServiceControlService) ProcessStatue(w http.ResponseWriter, r *http.Request) {
}

//DaemonStatue fun
func (_this *ServiceControlService) DaemonStatue(w http.ResponseWriter, r *http.Request) {
}

//StartAll fun
func (_this *ServiceControlService) StartAll(w http.ResponseWriter, r *http.Request) {
}

//StopAll fun
func (_this *ServiceControlService) StopAll(w http.ResponseWriter, r *http.Request) {
}

//StartDaemon fun
func (_this *ServiceControlService) StartDaemon(w http.ResponseWriter, r *http.Request) {
}

//StopDaemon fun
func (_this *ServiceControlService) StopDaemon(w http.ResponseWriter, r *http.Request) {
}

//StartProcess fun
func (_this *ServiceControlService) StartProcess(w http.ResponseWriter, r *http.Request) {
}

//StopProcess fun
func (_this *ServiceControlService) StopProcess(w http.ResponseWriter, r *http.Request) {
}
